# 导入时间模块
import time
# 装饰函数
def runtime(f):
    def m(*args,**kwargs):
        start = time.time()
        f(*args,**kwargs)
        end = time.time()
        print('%s执行了%f秒' % (f.__name__,end - start))
    return m

@runtime
